"use strict";
const electron = require("electron");
let win;
electron.Menu.setApplicationMenu(null) // 取消菜单项
const createBrowserWindow = () => {
  win = new electron.BrowserWindow({
    webPreferences: {
      nodeIntegration: true,
      devTools: true,
      contextIsolation: false
    }
  });
  win.loadURL(`http://${process.env["VITE_DEV_SERVER_HOST"]}:${process.env["VITE_DEV_SERVER_PORT"]}`);
};

electron.app.whenReady().then(createBrowserWindow);